export default {
  data() {
    return {
      searchData: {}
    }
  },
  created() {
    const { formQuery } = this.$route.query;
    if(formQuery) {
      this.selectData = JSON.parse(formQuery);
      this.$router.push({ query: {} });
    }
    this.searchData = { ...this.selectData };
  },
  watch: {
    'selectData.currentPage': {
      handler(val) {
        this.searchData.currentPage = val
      },
      deep: true
    }
  }
}
